package edu.ec.java02.group02.service.impl;

import edu.ec.java02.group02.domain.*;
import edu.ec.java02.group02.mapper.ProductInfoMapper;
import edu.ec.java02.group02.mapper.UserInfoMapper;
import edu.ec.java02.group02.service.ProductService;
import edu.ec.java02.group02.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ProductServiceImpl implements ProductService {

    @Resource
    private ProductInfoMapper productInfoMapper;

    @Override
    public List<ProductInfo> getProductByType(String type) {
        return productInfoMapper.getProductByType(type);
    }
}
